package com.hgyc.mom.core.mybatis;

import lombok.Setter;

/**
 * @author fwj
 */
@Setter
public class BaseQuery {
    /**
     * 页码
     */
    private Integer current;
    /**
     * 页面大小
     */
    private Integer pageSize;

    public Integer getCurrent() {
        return current == null ? 1 : current;
    }

    public Integer getPageSize() {
        return pageSize == null ? 10 : pageSize;
    }
}

